package com.example.neteasemusic.fragments

import android.content.Intent
import android.view.LayoutInflater
import androidx.viewbinding.ViewBinding
import com.example.lib_audio.activity.MusicPlayActivity
import com.example.lib_audio.player.AudioController
import com.example.lib_data.base.fragment.BaseFragment
import com.example.neteasemusic.R
import com.example.neteasemusic.databinding.FragmentCircleBinding

class CircleFragment:BaseFragment() {
    private val binding:FragmentCircleBinding by lazy {
        mBinding as FragmentCircleBinding
    }

    override fun getLayoutBinding(inflater: LayoutInflater): ViewBinding? {
        return FragmentCircleBinding.inflate(inflater)
    }

    override fun initData() {
        binding.button.setOnClickListener {
            AudioController.instance.playPrevious()
        }

        binding.button2.setOnClickListener {
            AudioController.instance.playNext()
        }
    }
}